import {lazy} from "react"
import Home from "../views/Home"
const routes=[{
    path:'/dash',
    component:Home,
    title:"主控页",
    show:true,
    children:[{
        path:'/dash/fenxi',
        component:lazy(()=>import('../views/dash/Fenxi')),
        title:"分析",
        show:true
    },
    {
        path:'/dash/jiankong',
        component:lazy(()=>import('../views/dash/Jiankong')),
        title:"监控",
        show:true
    },
    {
        path:'/dash/gongzuo',
        component:lazy(()=>import('../views/dash/Gongzuo')),
        title:"工作",
        show:true
    },
 
]
},
{
    path:'/form',
    component:Home,
    title:"表单页",
    show:true,
    children:[{
        path:'/form/fenbu',
        component:lazy(()=>import('../views/form/Fenbu')),
        title:"分部",
        show:true
    },
    {
        path:'/form/gaoji',
        component:lazy(()=>import('../views/form/Gaoji')),
        title:"高级",
        show:true
    },
    {
        path:'/form/jichu',
        component:lazy(()=>import('../views/form/Jichu')),
        title:"基础",
        show:true
    },
]

},
{
    path:'/list',
    component:Home,
    title:"列表页",
    show:true,
    children:[{
        path:'/list/chaxun',
        component:lazy(()=>import('../views/list/Chaxuan')),
        title:"查询",
        show:true
    },
    {
        path:'/list/kapian',
        component:lazy(()=>import('../views/list/Kapian')),
        title:"卡片",
        show:true
    },{
        path:'/list/sousou',
        component:lazy(()=>import('../views/list/Sousou')),
        title:"搜搜",
        show:true
    },]
},
{
    path:'/login',
    component:lazy(()=>import('../views/Login')),
    title:"登录",
    show:false
},
{
    path:'/',
   redirect: '/dash',  // 重定向:重新指向其它path,会改变网址
    show:false
},
]
export default routes